<!DOCTYPE html>
<html lang="en">

<head>
	<{include file="header.html" }>
		<title>班级排课-班级管理-
			<{$user_data[ 'school_name']}>-德安信会计在线教育平台</title>
			<script>
			var iframe_index ;

			$(function () {

				$("#auto_plan").click(function () {
					iframe_index = layer.open({
			     type: 2,
			     area: ['500px', '480px'],
			     fixed: false, //不固定
			     maxmin: false,
			     shadeClose: true,
			     title: '自动排课',
			     content: ['/class_plan/auto_plan/<{$class_info[ 'id']}>', 'no']
			   });
				})

				$("#add_plan").click(function () {
					iframe_index = layer.open({
			     type: 2,
			     area: ['700px', '580px'],
			     fixed: false, //不固定
			     maxmin: false,
			     shadeClose: true,
			     title: '手动排课',
			     content: ['/class_plan/add_single/<{$class_info[ 'id']}>', 'no']
			   });
				})


			});

			function save_close(){
				// alert("ok");
			  parent.layer.close(iframe_index);
			  window.location.href=window.location.href;
			  window.location.reload;
			}

			</script>
</head>

<body>
	<div class="wrap">
		<!--star left-->
		<div class="column">
			<{include file="left_menu.html" }>
		</div>
		<div id="ContMianBox">
			<!--star子栏目-->
            <div class="sub-colum">
                <div class="tit"><{$left_menu_min.menu}></div>
                <ul>
                    <{foreach from=$left_menu_min.list item=item}>
                    <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
                    <{/foreach}>
                </ul>
            </div>                                      
            <!--end子栏目-->
			<!--end left-->
			<div class="container narrow">
				<!--star conter-->
				<div class="cetContent">

					<!--star内容区域-->
					<div class="mainScroll">
						<div class="tit p-lr20">
							<a class="c-40d064" href="javascript:;">班级管理</a><em class="p-lr10 c-CCCCCC fs12">/</em><em>班级详情</em>
						</div>
						<!--star内容区域-->
						<div class="mainScroll">
							<div class="mainContainer line-all" style="min-height:inherit;">
								<dl class="fix">

									<dd>
										<div class="l" style="width:300px;">
											<div class="p-tb5 fs18">
												<{$class_info[ 'class_name']}>
											</div>
											<div class="p-tb5"><span class="c-ff6600">开课时间：<{$class_info[ 'start_time']|date_format: '%Y-%m-%d'}></span></div>
											<div> <span class="">课程名称：<{$class_info[ 'course_name']}></span></div>
											<div class="p-tb5"><span class="">总课时：<{$class_info[ 'class_hour']}></span></div>
											<div><span class="">上课时间：<{$class_info[ 'class_time']}></span></div>
											<!-- <div>已有<span class="c-ff6600">45</span>人报名</div> -->
											<!-- <div class="p-t5">入班请码：as5144885</div> -->
										</div>
										<div class="l tac" style="width:300px;">
											<button class="layui-btn layui-btn-danger"><{$classes_status}></button>
											<div class="p-tb20">
												<div class="progressBar m0auto">
													<div class="subBar" style="width:0%"></div>
												</div>
												<div class="p-t5">0%</div>
											</div>
										</div>
									</dd>
								</dl>
							</div>
							<div class="mainContainer line-all">

								<!-- star-->
								<div class="p-t10">

									<div class="mtc_tab">
										<!--star mt-->
										<div class="mt">
											<a href="/classes/detail/<{$class_info[ 'id']}>" >班级学员</a>
											<a href="/classes/plan/<{$class_info[ 'id']}>" class="curr">班级排课</a>
										</div>
										<!--end mt-->
										<div class="mb tar p-t10">
											<a class="layui-btn layui-btn-normal " href="/class_plan/plan_auto/<{$class_info[ 'id']}>">自动排课</a>
											<a class="layui-btn layui-btn-primary " id="add_plan">手动排课</a>
										</div>

										<!--star mc-->
										<div class="mc">
											<!--班级学员 star-->
											<div class="tabItem">

												<table class="layui-table" lay-skin="line">
													<colgroup>
														<col >
														<col >
														<col>
														<col>
														<col >
														<col >
														<col>
														<col>
														<col >
														<col >
														<col>
														<col>
														<col>
														
													</colgroup>
													<thead>
														<tr>
															<th>状态</th>
															<th>课题</th>
															<th>上课日期</th>
															<th>类型</th>
															<th>课时</th>
															<th>出勤</th>
															<th>旷课</th>
															<th>迟到</th>
															<th>早退</th>
															<th>请假</th>
															<th>讲师</th>
															<th>教室</th>
															<th></th>
														</tr>
													</thead>
													<tbody>
														<{foreach from=$plan_list item=item}>
															<tr>
																<td>
																	<a href="javascript:;" class="layui-btn layui-btn-mini">
																	<{if $item["status"]==1}>
																	已结束
																	<{else}>
																	未上课
																	<{/if}>
																	</a>
																</td>
																<td>
																	<{$item['title']}>
																</td>
																<td>
																	<{$item[ 'class_time']|date_format: '%Y-%m-%d %H:%M'}>
																</td>
																<td>
																	<{if $item["class_type"]==0}>
																	正常
																	<{else}>
																	补课
																	<{/if}>
																</td>

																<td><{$item['class_hour']}>课时</td>
																<td><{$item['count_chuqin']}></td>
																<td><{$item['count_kuangke']}></td>
																<td><{$item['count_chidao']}></td>
																<td><{$item['count_zaotui']}></td>
																<td><{$item['count_qingjia']}></td>
																<td><{$item['teacher_name']}></td>
																<td><{$item['class_room_name']}></td>
																<td>
																	<a href="/classes/plan_del/<{$item['id']}>" onclick="return confirm('确定要删除该排课计划吗？')" class="layui-btn layui-btn-mini">
																	删除
																	</a>
																</td>

															</tr>
															<{/foreach}>

													</tbody>
												</table>

											</div>
											<!--班级学员 end-->

										</div>
										<!--end mc-->
									</div>

								</div>
								<!-- end -->

							</div>
						</div>
					</div>
					<!--end内容区域-->

					<!--end conter-->
				</div>


			</div>
		</div>
		<{include file="footer.html"}>
</body>

</html>
